package net.whg.util;

import java.util.Objects;
import java.util.Optional;

public class ObjectsTest {

    public static void main(String[] args) {
        String arg1 = null;
        String arg2 = "2";
        System.out.println(Objects.equals(arg1, arg2));
        Optional.ofNullable(arg1).orElse("");

        System.out.println(Optional.ofNullable(arg1).orElse("1"));
    }
}
